﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Login
{
    public class LoginController : Controller
    {
        //表单
        public IActionResult Index()
        {
            return View();
        }

        //接收表单提交的数据
        public ActionResult Login(LoginViewModel model)
        {
            return RedirectToAction("Hello");
        }

        //重定向到这个页面
        public ActionResult Hello()
        {
            return View();
        }



    }
}
